[t:/]$ 지식_

셸에서 &&와 ||의 의미. shell.

2009/11/30
$ sudo mount -o loop -t iso9660 /isofile /mountpoint && sudo apt-get

여기서

&& ---> 전자가 성공하면 후자도 해라
|| ---> 전자가 실패하면 후자를 해라

즉 이거슨...

if sudo mount -o loop -t iso9660 /isofile /mountpoint; then
    if sudo apt-get install package_name; then
         sudo mount -o loop -t iso9660 /isofile /mountpoint
    fi
fi




공유하기













[t:/] is not "technology - root". dawnsea, rss